package com.allen.imsystem.chat.mappers;

import com.allen.imsystem.chat.model.pojo.Group;
import com.allen.imsystem.chat.model.pojo.GroupChat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @ClassName GroupMapper
 * @Description 群聊的数据库操作类
 * @Version 1.0
 */
@Mapper
@Repository
public interface GroupMapper extends BaseMapper<Group> {

    /**
     * 查询群的群主uid
     * @param gid 群id
     * @return 群主uid
     */
    String selectGroupOwnerId(String gid);

}
